home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 367_02 / futi14ax.zoo / fileutil.pl < prev    next >
Perl Script  |  1992-02-22  |  26KB  |  851 lines

  1. #! c:/bin/perl.exe
  2. # fileutils.pl - crude nroff -> texinfo conversion
  3. # Copyright (C) 1990 by Thorsten Ohl, ohl@gnu.ai.mit.edu
  4.  
  5. # $Header: e:/gnu/fileutil/RCS/fileutil.pl 1.4.0.1 90/09/19 13:26:15 tho Exp $
  6. #
  7.  
  8. $, = ' ';        # set output field separator
  9. $\ = "\n";        # set output record separator
  10.  
  11. eval '$'.$1.'$2;' while $ARGV[0] =~ /^([A-Za-z_]+=)(.*)/ && shift;
  12.             # process any FOO=bar switches
  13.  
  14. print <<'!END!OF!INTRO!';
  15. \input texinfo                    @c -*-texinfo-*-
  16. @setfilename fileutils.info
  17. @settitle The GNU file utilities (MS-DOS Version)
  18.  
  19. @comment Don't bother about some overfull boxes from the manpages.
  20. @iftex
  21. @finalout
  22. @end iftex
  23.  
  24. @ifinfo
  25. This file documents the MS-DOS port of the GNU file utilities.
  26.  
  27. Copyright @copyright{} 1990 Thorsten Ohl, <ohl@gnu.ai.mit.edu>
  28.  
  29. Permission is granted to make and distribute verbatim copies of
  30. this manual provided the copyright notice and this permission notice
  31. are preserved on all copies.
  32.  
  33. @ignore
  34. Permission is granted to process this file through TeX and print the
  35. results, provided the printed document carries copying permission
  36. notice identical to this one except for the removal of this paragraph
  37. (this paragraph not being relevant to the printed manual).
  38.  
  39. @end ignore
  40. Permission is granted to copy and distribute modified versions of this
  41. manual under the conditions for verbatim copying, provided also that
  42. the section entitled ``GNU General Public License'' is included exactly as in
  43. the original, and provided that the entire resulting derived work is
  44. distributed under the terms of a permission notice identical to this
  45. one.
  46.  
  47. Permission is granted to copy and distribute translations of this
  48. manual into another language, under the above conditions for modified
  49. versions, except that the text of the translations of the section
  50. entitled ``GNU General Public License'' must be approved for accuracy by the
  51. Foundation.
  52. @end ifinfo
  53.  
  54.  
  55. @comment --------------------------------------------------------------
  56.  
  57. @node Top,,,(Dir)
  58.  
  59. @menu
  60. * Copying::        Legal matters.
  61. * Introduction::    Generalilties.
  62. * Installation::    How to make the GNU fileutilities.
  63. * MS-DOS::        How the MS-DOS version differs.
  64. * Manpages::        Short description of the commands.
  65. * Program Index::    A guide to key material.
  66. @end menu
  67.  
  68. @node Copying, Introduction, Top, Top
  69. @unnumbered GNU GENERAL PUBLIC LICENSE
  70. @center Version 1, February 1989
  71.  
  72. @display
  73. Copyright @copyright{} 1989 Free Software Foundation, Inc.
  74. 675 Mass Ave, Cambridge, MA 02139, USA
  75.  
  76. Everyone is permitted to copy and distribute verbatim copies
  77. of this license document, but changing it is not allowed.
  78. @end display
  79.  
  80. @unnumberedsec Preamble
  81.  
  82.   The license agreements of most software companies try to keep users
  83. at the mercy of those companies.  By contrast, our General Public
  84. License is intended to guarantee your freedom to share and change free
  85. software---to make sure the software is free for all its users.  The
  86. General Public License applies to the Free Software Foundation's
  87. software and to any other program whose authors commit to using it.
  88. You can use it for your programs, too.
  89.  
  90.   When we speak of free software, we are referring to freedom, not
  91. price.  Specifically, the General Public License is designed to make
  92. sure that you have the freedom to give away or sell copies of free
  93. software, that you receive source code or can get it if you want it,
  94. that you can change the software or use pieces of it in new free
  95. programs; and that you know you can do these things.
  96.  
  97.   To protect your rights, we need to make restrictions that forbid
  98. anyone to deny you these rights or to ask you to surrender the rights.
  99. These restrictions translate to certain responsibilities for you if you
  100. distribute copies of the software, or if you modify it.
  101.  
  102.   For example, if you distribute copies of a such a program, whether
  103. gratis or for a fee, you must give the recipients all the rights that
  104. you have.  You must make sure that they, too, receive or can get the
  105. source code.  And you must tell them their rights.
  106.  
  107.   We protect your rights with two steps: (1) copyright the software, and
  108. (2) offer you this license which gives you legal permission to copy,
  109. distribute and/or modify the software.
  110.  
  111.   Also, for each author's protection and ours, we want to make certain
  112. that everyone understands that there is no warranty for this free
  113. software.  If the software is modified by someone else and passed on, we
  114. want its recipients to know that what they have is not the original, so
  115. that any problems introduced by others will not reflect on the original
  116. authors' reputations.
  117.  
  118.   The precise terms and conditions for copying, distribution and
  119. modification follow.
  120.  
  121. @iftex
  122. @unnumberedsec TERMS AND CONDITIONS
  123. @end iftex
  124. @ifinfo
  125. @center TERMS AND CONDITIONS
  126. @end ifinfo
  127.  
  128. @enumerate
  129. @item
  130. This License Agreement applies to any program or other work which
  131. contains a notice placed by the copyright holder saying it may be
  132. distributed under the terms of this General Public License.  The
  133. ``Program'', below, refers to any such program or work, and a ``work based
  134. on the Program'' means either the Program or any work containing the
  135. Program or a portion of it, either verbatim or with modifications.  Each
  136. licensee is addressed as ``you''.
  137.  
  138. @item
  139. You may copy and distribute verbatim copies of the Program's source
  140. code as you receive it, in any medium, provided that you conspicuously and
  141. appropriately publish on each copy an appropriate copyright notice and
  142. disclaimer of warranty; keep intact all the notices that refer to this
  143. General Public License and to the absence of any warranty; and give any
  144. other recipients of the Program a copy of this General Public License
  145. along with the Program.  You may charge a fee for the physical act of
  146. transferring a copy.
  147.  
  148. @item
  149. You may modify your copy or copies of the Program or any portion of
  150. it, and copy and distribute such modifications under the terms of Paragraph
  151. 1 above, provided that you also do the following:
  152.  
  153. @itemize @bullet
  154. @item
  155. cause the modified files to carry prominent notices stating that
  156. you changed the files and the date of any change; and
  157.  
  158. @item
  159. cause the whole of any work that you distribute or publish, that
  160. in whole or in part contains the Program or any part thereof, either
  161. with or without modifications, to be licensed at no charge to all
  162. third parties under the terms of this General Public License (except
  163. that you may choose to grant warranty protection to some or all
  164. third parties, at your option).
  165.  
  166. @item
  167. If the modified program normally reads commands interactively when
  168. run, you must cause it, when started running for such interactive use
  169. in the simplest and most usual way, to print or display an
  170. announcement including an appropriate copyright notice and a notice
  171. that there is no warranty (or else, saying that you provide a
  172. warranty) and that users may redistribute the program under these
  173. conditions, and telling the user how to view a copy of this General
  174. Public License.
  175.  
  176. @item
  177. You may charge a fee for the physical act of transferring a
  178. copy, and you may at your option offer warranty protection in
  179. exchange for a fee.
  180. @end itemize
  181.  
  182. Mere aggregation of another independent work with the Program (or its
  183. derivative) on a volume of a storage or distribution medium does not bring
  184. the other work under the scope of these terms.
  185.  
  186. @item
  187. You may copy and distribute the Program (or a portion or derivative of
  188. it, under Paragraph 2) in object code or executable form under the terms of
  189. Paragraphs 1 and 2 above provided that you also do one of the following:
  190.  
  191. @itemize @bullet
  192. @item
  193. accompany it with the complete corresponding machine-readable
  194. source code, which must be distributed under the terms of
  195. Paragraphs 1 and 2 above; or,
  196.  
  197. @item
  198. accompany it with a written offer, valid for at least three
  199. years, to give any third party free (except for a nominal charge
  200. for the cost of distribution) a complete machine-readable copy of the
  201. corresponding source code, to be distributed under the terms of
  202. Paragraphs 1 and 2 above; or,
  203.  
  204. @item
  205. accom